import 'package:flutter_getx/app/service/db_service.dart';
import 'package:flutter_getx/app/service/dio_service.dart';
import 'package:flutter_getx/app/service/local_storage_service.dart';
import 'package:flutter_getx/app/service/message_service.dart';
import 'package:flutter_getx/app/service/user_info_service.dart';
import 'package:get/get.dart';

class Service {
  static Future<void> init() async {
    await Get.putAsync<DioService>(() => DioService().init());
    await Get.putAsync<UserInfoService>(() => UserInfoService().init());
    await Get.putAsync<DBService>(() => DBService().init());
    await Get.putAsync<LocalStorageService>(() => LocalStorageService().init());
    await Get.putAsync<MessageService>(() => MessageService().init());
  }
}
